package com.atguigu.mediator.smarthouse;

/**
 * 抽象同事类
 */
public abstract class Colleague {
	
	/** 中介者接口 */
	private Mediator mediator;
	
	public String name;

	public Colleague(Mediator mediator, String name) {
		this.mediator = mediator;
		this.name = name;
	}

	public Mediator getMediator() {
		return this.mediator;
	}
	
	/**
	 * 公共方法 
	 */
	public abstract void sendMessage(int stateChange);
}
